package cn.sumpu.app.coolsk.domain;

import java.io.Serializable;
import java.text.ParseException;
import java.util.Date;

import cn.sumpu.toolkit.common.util.Common;

public class RoomPrice implements Serializable {

    private static final long serialVersionUID = -7898564518619171928L;

    private String            roomId;
    private String            spDate;
    private Double            priceA;
    private String            creator;
    private String            updater;
    private Date              gmtCreated       = new Date();
    private Date              gmtModified      = new Date();
    private Boolean           priceComHas;

    public String getWeek() {
        String weekday = null;
        if (!Common.empty(spDate)) {
            try {
                weekday = Common.getWeekDay(Common.parseDate(spDate, "yyyy-MM-dd"));
            } catch (ParseException e) {
                e.printStackTrace();
            }
        }

        return weekday;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getSpDate() {
        return spDate;
    }

    public void setSpDate(String spDate) {
        this.spDate = spDate;
    }

    public Double getPriceA() {
        return priceA;
    }

    public void setPriceA(Double priceA) {
        this.priceA = priceA;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public Date getGmtCreated() {
        return gmtCreated;
    }

    public void setGmtCreated(Date gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Boolean getPriceComHas() {
        return priceComHas;
    }

    public void setPriceComHas(Boolean priceComHas) {
        this.priceComHas = priceComHas;
    }

}
